/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.faytechcc.csc.gui;

import edu.faytechcc.csc.messages.Connection;
import javax.swing.JPanel;

/**
 * Please describe what this class does here.
 *
 * CSC 251 0001 DATE:
 *
 * @author Stephanie Mckenzie
 */
public class ChatPanel extends JPanel
{

    private TextPanel textPanel;
    private String localUserID;

    public ChatPanel()
    {
        textPanel = new TextPanel(localUserID);
        this.add(textPanel);
    }

    public void displayMessage(String remoteUserID, String msg)
    {
        textPanel.addMessage(msg);
    }

    /**
     * @return the localUserID
     */
    public String getLocalUserID()
    {
        return localUserID;
    }

    /**
     * @param localUserID the localUserID to set
     */
    public void setLocalUserID(String localUserID)
    {
        this.localUserID = localUserID;
    }
}
